package com.xadmin.designing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xadmin.sys.common.utils.Page;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

import com.xadmin.designing.mapper.Test02Mapper;
import com.xadmin.designing.pojo.Test02;
import com.xadmin.designing.service.Test02Service;

// //  modeName pojo mapper service

@Service
public class Test02ServiceImpl extends ServiceImpl<Test02Mapper, Test02> implements Test02Service {

    @Resource
    private Test02Mapper mapperTmp;

    @Override
    public Page<Test02> getAllByPage(Page<Test02> page) {
        List<Test02> list = mapperTmp.getAllByPage(page);
        page.setList(list);
        int tatalCount = mapperTmp.getCountByPage(page);
        page.setTotalCount(tatalCount);
        return page;
    }
}
